package cn.deali.homework9.model

import android.graphics.Bitmap

class Music {
    var id: Int = 0
    var name: String = ""
    var imgData: Bitmap? = null
    var imgUrl: String = ""
    var artist: String = ""
    var filepath: String = ""

    constructor() {}

    constructor(
            id: Int,
            name: String,
            imgData: Bitmap?,
            artist: String,
            filepath: String
    ) : this() {
        this.id = id
        this.name = name
        this.imgData = imgData
        this.artist = artist
        this.filepath = filepath
    }

    constructor(
            id: Int,
            name: String,
            imgUrl: String,
            artist: String
    ) : this(id, name, null, artist, "") {
        this.imgUrl = imgUrl
    }
}